<?php
setlocale(LC_ALL, 'zh_CN.utf-8');
header("Content-Type:text/html;charset=utf-8");

$redis = new redis(); 
$redis->connect('127.0.0.1', 6379); 

require_once 'class/user.class.php';

$id = isset($_POST['id']) ? intval($_POST['id']) : '';



require_once 'class/material.class.php';
$materialClass=new materialClass();


$materialClass->update2($id);



$data=array();
$data['status']=1;
$data['msg']='追加成功';
$data['url']='mywork.php';


$json=json_encode($data);
echo $json;	



?>